<!DOCTYPE html>
<html>
<head>
    <title>家校通</title>
    <meta name="keywords" content="" />
    <meta name="description" content="">
    <include file="public@head"/>
    <link rel="stylesheet" href="__STATIC__/js/jquery-ui/jquery-ui.css">
</head>
<body class="body-white" >
<include file="public@nav" />

<div class="container tc-main">
    <div class="col-md-3">
        <include file="public@jiaxiaonav" />
    </div>

    <div class="col-md-9">
        <!--标题 -->
        <div class="personal-nav" >
            <h2>编辑孩子信息</h2>
        </div>
        <!--标题 -->

        <!--填写信息 -->
        <div class="fill-in wrap" >
            <form action="{:url('jiaxiaotong/ChildrenInfo/editPost',array('id'=>$student['id']))}" method="post" class="form-horizontal js-ajax-form ">
                <input type="hidden" name="id" value="{$student['id']}">
                <div class="fill-in-list">
                    <ul>
                        <li>
                            <i>孩子姓名：</i>
                            <span>
                                <input type="text" name="name" value="{$student['name']}" placeholder="请输入学生姓名" class="srk" />
                            </span>
                        </li>
                        <li>
                            <i>性别：</i>
                            <span>
                                <select name="gender">
                                    <if condition="$student['gender'] eq 1">
                                        <option value='0'>未填写</option>
                                        <option value='1' selected>男</option>
                                        <option value='2'>女</option>
                                    <elseif condition="$student['gender'] eq 2" />
                                        <option value='0' >未填写</option>
                                        <option value='1'>男</option>
                                        <option value='2' selected>女</option>
                                    <else />
                                        <option value='0' selected>未选择</option>
                                        <option value='1'>男</option>
                                        <option value='2'>女</option>
                                    </if>
                                </select>
                            </span>
                        </li>
                        <li>
                            <i>出生日期：</i>
                            <span>
                                <input type="text" value="{$student['birthday']|date='Y-m-d',###}" name="birthday" class="srk" placeholder="请选择生日" autocomplete="off">
                            </span>
                        </li>
                        <li>
                            <i>学校全称:</i>
                            <span>
                                <input type="text" name="school_name" value="{$student['school_name']}" placeholder="请输入学校名称" class="srk" />
                            </span>
                        </li>
                        <li>
                            <i>年级：</i>
                            <span>
                                <select name="grade">
                                        <if condition="$student['grade'] eq 1">
                                            <option value="1" selected>一年级</option>
                                        <else/>
                                            <option value="1" >一年级</option>
                                        </if>
                                        <if  condition="$student['grade'] eq 2">
                                            <option value="2" selected>二年级</option>
                                            <else/>
                                            <option value="2" >二年级</option>
                                        </if>
                                        <if  condition="$student['grade'] eq 3">
                                            <option value="3" selected>三年级</option>
                                            <else/>
                                            <option value="3" >四年级</option>
                                        </if>
                                        <if  condition="$student['grade'] eq 4">
                                            <option value="4" selected>四年级</option>
                                            <else/>
                                            <option value="4" >四年级</option>
                                        </if>
                                        <if  condition="$student['grade'] eq 5">
                                            <option value="5" selected>五年级</option>
                                            <else/>
                                            <option value="5" >五年级</option>
                                        </if>
                                        <if  condition="$student['grade'] eq 6">
                                            <option value="6" selected>六年级</option>
                                            <else/>
                                            <option value="6" >六年级</option>
                                        </if>
                                        <if  condition="$student['grade'] eq 7">
                                            <option value="7" selected>七年级</option>
                                            <else/>
                                            <option value="7" >七年级</option>
                                        </if>
                                        <if  condition="$student['grade'] eq 8">
                                            <option value="8" selected>八年级</option>
                                            <else/>
                                            <option value="8" >八年级</option>
                                        </if>
                                        <if  condition="$student['grade'] eq 9">
                                            <option value="9" selected>九年级</option>
                                            <else/>
                                            <option value="9" >九年级</option>
                                        </if>
                                        <if  condition="$student['grade'] eq 10">
                                            <option value="10" selected>十年级</option>
                                            <else/>
                                            <option value="10" >十年级</option>
                                        </if>
                                        <if  condition="$student['grade'] eq 11">
                                            <option value="11" selected>十一年级</option>
                                            <else/>
                                            <option value="11" >十一年级</option>
                                        </if>
                                        <if  condition="$student['grade'] eq 12">
                                            <option value="12" selected>十二年级</option>
                                            <else/>
                                            <option value="12" >十二年级</option>
                                        </if>
                                </select>
                            </span>
                        </li>
                    </ul>
                </div>

                <!--确认提交 -->
                <div class="fill-btn" style="margin-bottom:0;">
                    <ul>
                        <li>
                            <button class="bm js-ajax-submit" type="submit">确定</button>
                        </li>
                    </ul>
                </div>
                <!--确认提交 -->
            </form>
        </div>
    </div>
</div>
<!-- /container -->

<include file="public@footer" />
<include file="public@scripts" />
<script type="text/javascript" src="__STATIC__/js/jquery-ui/jquery-ui.min.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
        $('input[name="birthday"]').datepicker({
//          changeMonth: true,
            changeYear: true
        });//日期

    });
</script>
</body>
</html>